#if !defined(AFX_BASEPOP_H__13FCBD34_5E02_4EA6_BEE4_66233CF52750__INCLUDED_)
#define AFX_BASEPOP_H__13FCBD34_5E02_4EA6_BEE4_66233CF52750__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BasePop.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CBasePop dialog
#define IDD_BASE_POP 154
class CBasePop : public CDialog
{
// Construction
public:
	CStringList* SelectStringList(CStringList* newstringlist);
	bool InitListBox();
	bool RefreshListBoxView(CString edited);
	CString GetListBoxSel();
	void SetShowPosition(int x,int y,CWnd* wndedited);
	bool Create(CWnd* parent);
	CBasePop(CWnd* pParent = NULL);   // standard constructor
	enum{ID_POP_LISTBOX=300};

// Dialog Data
	//{{AFX_DATA(CBasePop)
	enum { IDD = IDD_BASE_POP };
	//}}AFX_DATA
	CStringList* m_strlist;
	CListBox*	 m_listbox;
	CWnd*		 m_wndStrEdited;


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBasePop)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	int m_iCurSel;
	CRect m_rectShow;
	CPoint m_ptPosition;
	void ClearListBox();
	void SetListBoxValues();

	// Generated message map functions
	//{{AFX_MSG(CBasePop)
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnDblclkList();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BASEPOP_H__13FCBD34_5E02_4EA6_BEE4_66233CF52750__INCLUDED_)
